<template>
  <view>
    <image class="icon" :src="iconUrl"/>
  </view>
</template>

<script>

export default {
  name: 'Icon',
  props: {
    iconName: String
  },
  computed: {
    iconUrl() {
      return `/static/icons/${this.iconName}.svg`
    }
  }
}
</script>

<style lang="scss" scoped>
  .icon {
    width: 27px;
    height: 27px;
    vertical-align: -0.15em;
    overflow: hidden;
    fill: currentColor;
  }
</style>
